package instructions;

import memory.Address;
import memory.Word;
import memory.WordFinder;

public class Add extends Arithmetic {

	
	public Add(WordFinder address1, WordFinder word, Address address2){
		super(address1,word,address2);
	}
	
	public String toString(){
		return "ADD [" + address1 + "] " + word + " [" + address2 + "]\n";
		
	}

	
	protected Word operate(Word word, Word newWord) {
		return word.add(word, newWord);
		
	}

}
